package org.example.chat.entity;

import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Table;

import java.sql.Timestamp;
import java.lang.String;

/**
 * 消息已读状态表 实体类。
 *
 * @author mybatis-flex-helper automatic generation
 * @since 1.0
 */
@Table(value = "chat_message_read_status", dataSource = "chatDS")
public class ChatMessageReadStatusEntity {

    /**
     * 消息ID
     */
    @Id(keyType = KeyType.Auto)
    private String messageId;

    /**
     * 用户ID
     */
    @Id(keyType = KeyType.Auto)
    private String userId;

    /**
     * 阅读时间
     */
    @Column(value = "read_at")
    private Timestamp readAt;


    public String getMessageId() {
        return messageId;
    }

    public void setMessageId(String messageId) {
        this.messageId = messageId;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public Timestamp getReadAt() {
        return readAt;
    }

    public void setReadAt(Timestamp readAt) {
        this.readAt = readAt;
    }
}
